package Hilfsklassen;

import java.awt.*;

import javax.print.attribute.standard.JobHoldUntil;
import javax.swing.*;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;


public class RegistrierenView extends HintergrundPanel {
		
	public RegistrierenView()
	{

		Font componentFont = new Font("Arial", Font.PLAIN, 26);
		this.setHintergrundBild("kachelo.png");
		this.setSize(440, 600);
		this.setLayout(null);
		this.setBorder(new LineBorder(Color.BLACK, 4));
		this.setLocation(UIUtils.getZentrum(this));
		
//		JPanel centerPanel = new JPanel(null);
		
		HintergrundPanel titelPanel = new HintergrundPanel("header.jpg");
		titelPanel.setSize(440, 60);
		titelPanel.setBorder(new LineBorder(Color.BLACK, 4));
		
		ColorettoLabel verbindenLabel = new ColorettoLabel("Registrieren", 20, 10);		
		verbindenLabel.setFett();
		
		ColorettoLabel  usernameLabel = new ColorettoLabel ("Username", 20, 100);
		ColorettoLabel  passwortLabel = new ColorettoLabel ("Passwort", 20, 200);		
		ColorettoLabel  passwortLabel2 = new ColorettoLabel ("Passwort wiederholen", 20, 300);		
		
		JTextField username = new JTextField();
		username.setLocation(20, 135);
		username.setSize(400, 40);
		username.setFont(componentFont);
		username.setFont(UIUtils.ladeFont());
		
		JPasswordField passwort = new JPasswordField();
		passwort.setLocation(20, 235);
		passwort.setSize(400, 40);
		passwort.setFont(componentFont);
		passwort.setFont(UIUtils.ladeFont());

		JPasswordField passwort2 = new JPasswordField();
		passwort2.setLocation(20, 335);
		passwort2.setSize(400, 40);
		passwort2.setFont(componentFont);
		passwort2.setFont(UIUtils.ladeFont());

		
		JButton verbindenButton = new JButton("Registrieren");
		verbindenButton.setLocation(20, 400);
		verbindenButton.setSize(240, 40);
		verbindenButton.setFont(UIUtils.ladeFont());
		ColorettoLabel  hinweisLabel = new ColorettoLabel ("Sie werden automatisch zum Spiel weitergeleitet.", 20, 430);		
		hinweisLabel.setFont(hinweisLabel.getFont().deriveFont(13.0f));
		
		this.add(verbindenLabel);
		this.add(usernameLabel);
		this.add(passwortLabel);
		this.add(passwortLabel2);
		this.add(username);
		this.add(passwort);
		this.add(passwort2);
		this.add(titelPanel);
		this.add(verbindenButton);
		this.add(hinweisLabel);
		
	}
	
}
